from django.db import models
from utils.BaseModel import BaseModel
# Create your models here.
class NavModel(BaseModel):
    navname=models.CharField(max_length=20,verbose_name='导航名称')
    position=models.IntegerField(verbose_name='导航位置',default=0)
    class Meta:
        db_table='fgnav'
    def __str__(self):
        return self.navname
#banner model
class BannerModel(BaseModel):
    title=models.CharField(max_length=20,verbose_name='轮播标题')
    img=models.CharField(verbose_name='轮播图片',max_length=200)
    url=models.CharField(verbose_name='轮播链接',max_length=200)
    class Meta:
        db_table='fgbanner'
    def __str__(self):
        return self.title